module.exports = {
  value: {
    type: [String, Number, Boolean],
    default: '',
    name: '输入值',
    filedType: 'value'
  },

  radiotype: {
    type: Boolean,
    default: false,
    name: '启用按钮样式',
    filedType: 'switch'
  },

  textColor: {
    type: String,
    default: '#409EFF',
    name: '按钮形式激活时的文本颜色',
    filedType: 'color'
  },

  fillColor: {
    type: String,
    default: '#C0CCDA',
    name: '按钮形式激活时的填充色和边框色',
    filedType: 'color'
  },

  list: {
    type: Array,
    default () {
      return [
        {
          label: '列表项1',
          disabled: true,
          value: '1'
        },
        {
          label: '列表项2',
          value: '2'
        }
      ]
    },
    name: '选项列表',
    filedType: 'api'
  },
  labelWidth: {
    type: String,
    default: '5em',
    name: '标题宽度',
    nameTip: '建议用em单位显示几个字',
    filedType: 'string'
  },

  title: {
    type: String,
    default: '',
    name: '标题',
    filedType: 'string'
  },
  titleWeight: {
    type: String,
    default: '700',
    name: '标题粗细',
    filedType: 'string'
  },
  titleHeight: {
    type: String,
    default: '26px',
    name: '标题行高',
    filedType: 'string'
  },
  validValue: {
    type: Boolean,
    default: false,
    name: '数据校验',
    filedType: 'switch'
  },
  validRules: {
    type: Array,
    default () {
      return [
        { required: true, message: '请输入活动名称', trigger: 'blur' },
        { disabled: false, message: '禁用输入框' }
      ]
    },
    name: '校验规则',
    filedType: 'api',
    vif: {
      key: 'validValue',
      value: true
    }
  }
}
